package com.example.playnote.adapter

import android.content.Context
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.playnote.R
import com.example.playnote.bean.FriendListResponse
import com.example.playnote.bean.FriendListResponseItem

class CommonAdapter(val context: Context, datas: FriendListResponse?) :
    BaseQuickAdapter<FriendListResponseItem, BaseViewHolder>(R.layout.common_list_item, datas) {
    override fun convert(helper: BaseViewHolder, item: FriendListResponseItem?) {
        item ?: return
        helper.setText(R.id.commonItemTitle, item.name.trim())
    }
}